
if (process.env.NODE_ENV === 'development') {
  require('env2')('./.env.development')
} else if (process.env.NODE_ENV === 'testing') {
  require('env2')('./.env.testing')
} else {
  require('env2')('./.env.production')
}

const { env } = process

module.exports = {
  'mysql': {
    'username': env.MYSQL_USERNAME,
    'password': env.MYSQL_PASSWORD,
    'database': env.MYSQL_DB_NAME,
    'host': env.MYSQL_HOST,
    'port': env.MYSQL_PORT,
    'dialect': 'mysql',
    'timezone': '+08:00'
  },
  'reg_app': 'tuyibo',
  'oss' : {
    "region": "oss-cn-shenzhen",
    "accessKey": "LTAI4FwtjbmeXJMtgXwwkm4d",
    "accessKeySecret": "WCwrFERjpyl8t7klFKV6vMAK4Vkpe6",
    "bucket": "tuyibo"
  },
  "weixin":{
    "OPEN_APPID": "wx48a3208e6327fb2b",
    "OPEN_SECRET": "6518aa73e4334da8328d1260791fabeb"
  },
  "yunzhixui": {
    'sid': '54cff8754c0cdea9ab177013b77597df',                       //开发者账号id
    'token': '1f33a512248999c19cbe6eee84670247',                     //开发者token
    'appid': '684584eeb0ae4b93acb5bb85d71aed01',                     //应用id
    'templateid': '533195',                //短信模板id
    'uid': ''                       //透传uid   可为空
  },
  'redis':{
    'host':env.REDIS_HOST,
    'port':env.REDIS_PORT
  }
}